home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / SourceCode / MiscKit1.7.1 / MiscKit / Examples / MiscString / stest2.txt < prev    next >
Encoding:
Text File  |  1994-12-10  |  13.7 KB  |  293 lines

  1. ------------------------------------------------
  2. String is: <Hello my dear [] 345 How ''are78 we?>
  3. Is all MISC_UPPER? 0
  4. Has    MISC_UPPER? 1
  5. Num of MISC_UPPER: 2
  6. spotsof MISC_UPPER: 0 21 
  7. rspotsof MISC_UPPER: 21 0 
  8. replace -1th MISC_UPPER with '*': <Hello my dear [] 345 *ow ''are78 we?>
  9. replace 0th MISC_UPPER with '*': <*ello my dear [] 345 How ''are78 we?>
  10. replace 1th MISC_UPPER with '*': <Hello my dear [] 345 *ow ''are78 we?>
  11. replace 2th MISC_UPPER with '*': <Hello my dear [] 345 How ''are78 we?>
  12. replace 3th MISC_UPPER with '*': <Hello my dear [] 345 How ''are78 we?>
  13. replace 4th MISC_UPPER with '*': <Hello my dear [] 345 How ''are78 we?>
  14. replaceAll MISC_UPPER with '*': <*ello my dear [] 345 *ow ''are78 we?>
  15. Is all MISC_LOWER? 0
  16. Has    MISC_LOWER? 1
  17. Num of MISC_LOWER: 17
  18. spotsof MISC_LOWER: 1 2 3 4 6 7 9 10 11 12 22 23 27 28 29 33 34 
  19. rspotsof MISC_LOWER: 34 33 29 28 27 23 22 12 11 10 9 7 6 4 3 2 1 
  20. replace -1th MISC_LOWER with '*': <Hello my dear [] 345 How ''are78 w*?>
  21. replace 0th MISC_LOWER with '*': <H*llo my dear [] 345 How ''are78 we?>
  22. replace 1th MISC_LOWER with '*': <He*lo my dear [] 345 How ''are78 we?>
  23. replace 2th MISC_LOWER with '*': <Hel*o my dear [] 345 How ''are78 we?>
  24. replace 3th MISC_LOWER with '*': <Hell* my dear [] 345 How ''are78 we?>
  25. replace 4th MISC_LOWER with '*': <Hello *y dear [] 345 How ''are78 we?>
  26. replaceAll MISC_LOWER with '*': <H**** ** **** [] 345 H** ''***78 **?>
  27. Is all MISC_DIGIT? 0
  28. Has    MISC_DIGIT? 1
  29. Num of MISC_DIGIT: 5
  30. spotsof MISC_DIGIT: 17 18 19 30 31 
  31. rspotsof MISC_DIGIT: 31 30 19 18 17 
  32. replace -1th MISC_DIGIT with '*': <Hello my dear [] 345 How ''are7* we?>
  33. replace 0th MISC_DIGIT with '*': <Hello my dear [] *45 How ''are78 we?>
  34. replace 1th MISC_DIGIT with '*': <Hello my dear [] 3*5 How ''are78 we?>
  35. replace 2th MISC_DIGIT with '*': <Hello my dear [] 34* How ''are78 we?>
  36. replace 3th MISC_DIGIT with '*': <Hello my dear [] 345 How ''are*8 we?>
  37. replace 4th MISC_DIGIT with '*': <Hello my dear [] 345 How ''are7* we?>
  38. replaceAll MISC_DIGIT with '*': <Hello my dear [] *** How ''are** we?>
  39. Is all MISC_XDIGIT? 0
  40. Has    MISC_XDIGIT? 1
  41. Num of MISC_XDIGIT: 12
  42. spotsof MISC_XDIGIT: 1 9 10 11 17 18 19 27 29 30 31 34 
  43. rspotsof MISC_XDIGIT: 34 31 30 29 27 19 18 17 11 10 9 1 
  44. replace -1th MISC_XDIGIT with '*': <Hello my dear [] 345 How ''are78 w*?>
  45. replace 0th MISC_XDIGIT with '*': <H*llo my dear [] 345 How ''are78 we?>
  46. replace 1th MISC_XDIGIT with '*': <Hello my *ear [] 345 How ''are78 we?>
  47. replace 2th MISC_XDIGIT with '*': <Hello my d*ar [] 345 How ''are78 we?>
  48. replace 3th MISC_XDIGIT with '*': <Hello my de*r [] 345 How ''are78 we?>
  49. replace 4th MISC_XDIGIT with '*': <Hello my dear [] *45 How ''are78 we?>
  50. replaceAll MISC_XDIGIT with '*': <H*llo my ***r [] *** How ''*r*** w*?>
  51. Is all MISC_PUNCT? 0
  52. Has    MISC_PUNCT? 1
  53. Num of MISC_PUNCT: 5
  54. spotsof MISC_PUNCT: 14 15 25 26 35 
  55. rspotsof MISC_PUNCT: 35 26 25 15 14 
  56. replace -1th MISC_PUNCT with '*': <Hello my dear [] 345 How ''are78 we*>
  57. replace 0th MISC_PUNCT with '*': <Hello my dear *] 345 How ''are78 we?>
  58. replace 1th MISC_PUNCT with '*': <Hello my dear [* 345 How ''are78 we?>
  59. replace 2th MISC_PUNCT with '*': <Hello my dear [] 345 How *'are78 we?>
  60. replace 3th MISC_PUNCT with '*': <Hello my dear [] 345 How '*are78 we?>
  61. replace 4th MISC_PUNCT with '*': <Hello my dear [] 345 How ''are78 we*>
  62. replaceAll MISC_PUNCT with '*': <Hello my dear ** 345 How **are78 we*>
  63. Is all MISC_ASCII? 1
  64. Has    MISC_ASCII? 1
  65. Num of MISC_ASCII: 36
  66. spotsof MISC_ASCII: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 
  67. rspotsof MISC_ASCII: 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 
  68. replace -1th MISC_ASCII with '*': <Hello my dear [] 345 How ''are78 we*>
  69. replace 0th MISC_ASCII with '*': <*ello my dear [] 345 How ''are78 we?>
  70. replace 1th MISC_ASCII with '*': <H*llo my dear [] 345 How ''are78 we?>
  71. replace 2th MISC_ASCII with '*': <He*lo my dear [] 345 How ''are78 we?>
  72. replace 3th MISC_ASCII with '*': <Hel*o my dear [] 345 How ''are78 we?>
  73. replace 4th MISC_ASCII with '*': <Hell* my dear [] 345 How ''are78 we?>
  74. replaceAll MISC_ASCII with '*': <************************************>
  75. Is all MISC_CNTRL? 0
  76. Has    MISC_CNTRL? 0
  77. Num of MISC_CNTRL: 0
  78. spotsof MISC_CNTRL: 
  79. rspotsof MISC_CNTRL: 
  80. replace -1th MISC_CNTRL with '*': <Hello my dear [] 345 How ''are78 we?>
  81. replace 0th MISC_CNTRL with '*': <Hello my dear [] 345 How ''are78 we?>
  82. replace 1th MISC_CNTRL with '*': <Hello my dear [] 345 How ''are78 we?>
  83. replace 2th MISC_CNTRL with '*': <Hello my dear [] 345 How ''are78 we?>
  84. replace 3th MISC_CNTRL with '*': <Hello my dear [] 345 How ''are78 we?>
  85. replace 4th MISC_CNTRL with '*': <Hello my dear [] 345 How ''are78 we?>
  86. replaceAll MISC_CNTRL with '*': <Hello my dear [] 345 How ''are78 we?>
  87. Is all MISC_PRINT? 1
  88. Has    MISC_PRINT? 1
  89. Num of MISC_PRINT: 36
  90. spotsof MISC_PRINT: 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 
  91. rspotsof MISC_PRINT: 35 34 33 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 
  92. replace -1th MISC_PRINT with '*': <Hello my dear [] 345 How ''are78 we*>
  93. replace 0th MISC_PRINT with '*': <*ello my dear [] 345 How ''are78 we?>
  94. replace 1th MISC_PRINT with '*': <H*llo my dear [] 345 How ''are78 we?>
  95. replace 2th MISC_PRINT with '*': <He*lo my dear [] 345 How ''are78 we?>
  96. replace 3th MISC_PRINT with '*': <Hel*o my dear [] 345 How ''are78 we?>
  97. replace 4th MISC_PRINT with '*': <Hell* my dear [] 345 How ''are78 we?>
  98. replaceAll MISC_PRINT with '*': <************************************>
  99. Is all MISC_SPACE? 0
  100. Has    MISC_SPACE? 1
  101. Num of MISC_SPACE: 7
  102. spotsof MISC_SPACE: 5 8 13 16 20 24 32 
  103. rspotsof MISC_SPACE: 32 24 20 16 13 8 5 
  104. replace -1th MISC_SPACE with '*': <Hello my dear [] 345 How ''are78*we?>
  105. replace 0th MISC_SPACE with '*': <Hello*my dear [] 345 How ''are78 we?>
  106. replace 1th MISC_SPACE with '*': <Hello my*dear [] 345 How ''are78 we?>
  107. replace 2th MISC_SPACE with '*': <Hello my dear*[] 345 How ''are78 we?>
  108. replace 3th MISC_SPACE with '*': <Hello my dear []*345 How ''are78 we?>
  109. replace 4th MISC_SPACE with '*': <Hello my dear [] 345*How ''are78 we?>
  110. replaceAll MISC_SPACE with '*': <Hello*my*dear*[]*345*How*''are78*we?>
  111. Is all MISC_GRAPH? 0
  112. Has    MISC_GRAPH? 1
  113. Num of MISC_GRAPH: 29
  114. spotsof MISC_GRAPH: 0 1 2 3 4 6 7 9 10 11 12 14 15 17 18 19 21 22 23 25 26 27 28 29 30 31 33 34 35 
  115. rspotsof MISC_GRAPH: 35 34 33 31 30 29 28 27 26 25 23 22 21 19 18 17 15 14 12 11 10 9 7 6 4 3 2 1 0 
  116. replace -1th MISC_GRAPH with '*': <Hello my dear [] 345 How ''are78 we*>
  117. replace 0th MISC_GRAPH with '*': <*ello my dear [] 345 How ''are78 we?>
  118. replace 1th MISC_GRAPH with '*': <H*llo my dear [] 345 How ''are78 we?>
  119. replace 2th MISC_GRAPH with '*': <He*lo my dear [] 345 How ''are78 we?>
  120. replace 3th MISC_GRAPH with '*': <Hel*o my dear [] 345 How ''are78 we?>
  121. replace 4th MISC_GRAPH with '*': <Hell* my dear [] 345 How ''are78 we?>
  122. replaceAll MISC_GRAPH with '*': <***** ** **** ** *** *** ******* ***>
  123. Is all MISC_ALPHA? 0
  124. Has    MISC_ALPHA? 1
  125. Num of MISC_ALPHA: 19
  126. spotsof MISC_ALPHA: 0 1 2 3 4 6 7 9 10 11 12 21 22 23 27 28 29 33 34 
  127. rspotsof MISC_ALPHA: 34 33 29 28 27 23 22 21 12 11 10 9 7 6 4 3 2 1 0 
  128. replace -1th MISC_ALPHA with '*': <Hello my dear [] 345 How ''are78 w*?>
  129. replace 0th MISC_ALPHA with '*': <*ello my dear [] 345 How ''are78 we?>
  130. replace 1th MISC_ALPHA with '*': <H*llo my dear [] 345 How ''are78 we?>
  131. replace 2th MISC_ALPHA with '*': <He*lo my dear [] 345 How ''are78 we?>
  132. replace 3th MISC_ALPHA with '*': <Hel*o my dear [] 345 How ''are78 we?>
  133. replace 4th MISC_ALPHA with '*': <Hell* my dear [] 345 How ''are78 we?>
  134. replaceAll MISC_ALPHA with '*': <***** ** **** [] 345 *** ''***78 **?>
  135. Is all MISC_ALNUM? 0
  136. Has    MISC_ALNUM? 1
  137. Num of MISC_ALNUM: 24
  138. spotsof MISC_ALNUM: 0 1 2 3 4 6 7 9 10 11 12 17 18 19 21 22 23 27 28 29 30 31 33 34 
  139. rspotsof MISC_ALNUM: 34 33 31 30 29 28 27 23 22 21 19 18 17 12 11 10 9 7 6 4 3 2 1 0 
  140. replace -1th MISC_ALNUM with '*': <Hello my dear [] 345 How ''are78 w*?>
  141. replace 0th MISC_ALNUM with '*': <*ello my dear [] 345 How ''are78 we?>
  142. replace 1th MISC_ALNUM with '*': <H*llo my dear [] 345 How ''are78 we?>
  143. replace 2th MISC_ALNUM with '*': <He*lo my dear [] 345 How ''are78 we?>
  144. replace 3th MISC_ALNUM with '*': <Hel*o my dear [] 345 How ''are78 we?>
  145. replace 4th MISC_ALNUM with '*': <Hell* my dear [] 345 How ''are78 we?>
  146. replaceAll MISC_ALNUM with '*': <***** ** **** [] *** *** ''***** **?>
  147. ------------------------------------------------
  148. String is: <OH! DARLING>
  149. Is all MISC_UPPER? 0
  150. Has    MISC_UPPER? 1
  151. Num of MISC_UPPER: 9
  152. spotsof MISC_UPPER: 0 1 4 5 6 7 8 9 10 
  153. rspotsof MISC_UPPER: 10 9 8 7 6 5 4 1 0 
  154. replace -1th MISC_UPPER with '*': <OH! DARLIN*>
  155. replace 0th MISC_UPPER with '*': <*H! DARLING>
  156. replace 1th MISC_UPPER with '*': <O*! DARLING>
  157. replace 2th MISC_UPPER with '*': <OH! *ARLING>
  158. replace 3th MISC_UPPER with '*': <OH! D*RLING>
  159. replace 4th MISC_UPPER with '*': <OH! DA*LING>
  160. replaceAll MISC_UPPER with '*': <**! *******>
  161. Is all MISC_LOWER? 0
  162. Has    MISC_LOWER? 0
  163. Num of MISC_LOWER: 0
  164. spotsof MISC_LOWER: 
  165. rspotsof MISC_LOWER: 
  166. replace -1th MISC_LOWER with '*': <OH! DARLING>
  167. replace 0th MISC_LOWER with '*': <OH! DARLING>
  168. replace 1th MISC_LOWER with '*': <OH! DARLING>
  169. replace 2th MISC_LOWER with '*': <OH! DARLING>
  170. replace 3th MISC_LOWER with '*': <OH! DARLING>
  171. replace 4th MISC_LOWER with '*': <OH! DARLING>
  172. replaceAll MISC_LOWER with '*': <OH! DARLING>
  173. Is all MISC_DIGIT? 0
  174. Has    MISC_DIGIT? 0
  175. Num of MISC_DIGIT: 0
  176. spotsof MISC_DIGIT: 
  177. rspotsof MISC_DIGIT: 
  178. replace -1th MISC_DIGIT with '*': <OH! DARLING>
  179. replace 0th MISC_DIGIT with '*': <OH! DARLING>
  180. replace 1th MISC_DIGIT with '*': <OH! DARLING>
  181. replace 2th MISC_DIGIT with '*': <OH! DARLING>
  182. replace 3th MISC_DIGIT with '*': <OH! DARLING>
  183. replace 4th MISC_DIGIT with '*': <OH! DARLING>
  184. replaceAll MISC_DIGIT with '*': <OH! DARLING>
  185. Is all MISC_XDIGIT? 0
  186. Has    MISC_XDIGIT? 1
  187. Num of MISC_XDIGIT: 2
  188. spotsof MISC_XDIGIT: 4 5 
  189. rspotsof MISC_XDIGIT: 5 4 
  190. replace -1th MISC_XDIGIT with '*': <OH! D*RLING>
  191. replace 0th MISC_XDIGIT with '*': <OH! *ARLING>
  192. replace 1th MISC_XDIGIT with '*': <OH! D*RLING>
  193. replace 2th MISC_XDIGIT with '*': <OH! DARLING>
  194. replace 3th MISC_XDIGIT with '*': <OH! DARLING>
  195. replace 4th MISC_XDIGIT with '*': <OH! DARLING>
  196. replaceAll MISC_XDIGIT with '*': <OH! **RLING>
  197. Is all MISC_PUNCT? 0
  198. Has    MISC_PUNCT? 1
  199. Num of MISC_PUNCT: 1
  200. spotsof MISC_PUNCT: 2 
  201. rspotsof MISC_PUNCT: 2 
  202. replace -1th MISC_PUNCT with '*': <OH* DARLING>
  203. replace 0th MISC_PUNCT with '*': <OH* DARLING>
  204. replace 1th MISC_PUNCT with '*': <OH! DARLING>
  205. replace 2th MISC_PUNCT with '*': <OH! DARLING>
  206. replace 3th MISC_PUNCT with '*': <OH! DARLING>
  207. replace 4th MISC_PUNCT with '*': <OH! DARLING>
  208. replaceAll MISC_PUNCT with '*': <OH* DARLING>
  209. Is all MISC_ASCII? 1
  210. Has    MISC_ASCII? 1
  211. Num of MISC_ASCII: 11
  212. spotsof MISC_ASCII: 0 1 2 3 4 5 6 7 8 9 10 
  213. rspotsof MISC_ASCII: 10 9 8 7 6 5 4 3 2 1 0 
  214. replace -1th MISC_ASCII with '*': <OH! DARLIN*>
  215. replace 0th MISC_ASCII with '*': <*H! DARLING>
  216. replace 1th MISC_ASCII with '*': <O*! DARLING>
  217. replace 2th MISC_ASCII with '*': <OH* DARLING>
  218. replace 3th MISC_ASCII with '*': <OH!*DARLING>
  219. replace 4th MISC_ASCII with '*': <OH! *ARLING>
  220. replaceAll MISC_ASCII with '*': <***********>
  221. Is all MISC_CNTRL? 0
  222. Has    MISC_CNTRL? 0
  223. Num of MISC_CNTRL: 0
  224. spotsof MISC_CNTRL: 
  225. rspotsof MISC_CNTRL: 
  226. replace -1th MISC_CNTRL with '*': <OH! DARLING>
  227. replace 0th MISC_CNTRL with '*': <OH! DARLING>
  228. replace 1th MISC_CNTRL with '*': <OH! DARLING>
  229. replace 2th MISC_CNTRL with '*': <OH! DARLING>
  230. replace 3th MISC_CNTRL with '*': <OH! DARLING>
  231. replace 4th MISC_CNTRL with '*': <OH! DARLING>
  232. replaceAll MISC_CNTRL with '*': <OH! DARLING>
  233. Is all MISC_PRINT? 1
  234. Has    MISC_PRINT? 1
  235. Num of MISC_PRINT: 11
  236. spotsof MISC_PRINT: 0 1 2 3 4 5 6 7 8 9 10 
  237. rspotsof MISC_PRINT: 10 9 8 7 6 5 4 3 2 1 0 
  238. replace -1th MISC_PRINT with '*': <OH! DARLIN*>
  239. replace 0th MISC_PRINT with '*': <*H! DARLING>
  240. replace 1th MISC_PRINT with '*': <O*! DARLING>
  241. replace 2th MISC_PRINT with '*': <OH* DARLING>
  242. replace 3th MISC_PRINT with '*': <OH!*DARLING>
  243. replace 4th MISC_PRINT with '*': <OH! *ARLING>
  244. replaceAll MISC_PRINT with '*': <***********>
  245. Is all MISC_SPACE? 0
  246. Has    MISC_SPACE? 1
  247. Num of MISC_SPACE: 1
  248. spotsof MISC_SPACE: 3 
  249. rspotsof MISC_SPACE: 3 
  250. replace -1th MISC_SPACE with '*': <OH!*DARLING>
  251. replace 0th MISC_SPACE with '*': <OH!*DARLING>
  252. replace 1th MISC_SPACE with '*': <OH! DARLING>
  253. replace 2th MISC_SPACE with '*': <OH! DARLING>
  254. replace 3th MISC_SPACE with '*': <OH! DARLING>
  255. replace 4th MISC_SPACE with '*': <OH! DARLING>
  256. replaceAll MISC_SPACE with '*': <OH!*DARLING>
  257. Is all MISC_GRAPH? 0
  258. Has    MISC_GRAPH? 1
  259. Num of MISC_GRAPH: 10
  260. spotsof MISC_GRAPH: 0 1 2 4 5 6 7 8 9 10 
  261. rspotsof MISC_GRAPH: 10 9 8 7 6 5 4 2 1 0 
  262. replace -1th MISC_GRAPH with '*': <OH! DARLIN*>
  263. replace 0th MISC_GRAPH with '*': <*H! DARLING>
  264. replace 1th MISC_GRAPH with '*': <O*! DARLING>
  265. replace 2th MISC_GRAPH with '*': <OH* DARLING>
  266. replace 3th MISC_GRAPH with '*': <OH! *ARLING>
  267. replace 4th MISC_GRAPH with '*': <OH! D*RLING>
  268. replaceAll MISC_GRAPH with '*': <*** *******>
  269. Is all MISC_ALPHA? 0
  270. Has    MISC_ALPHA? 1
  271. Num of MISC_ALPHA: 9
  272. spotsof MISC_ALPHA: 0 1 4 5 6 7 8 9 10 
  273. rspotsof MISC_ALPHA: 10 9 8 7 6 5 4 1 0 
  274. replace -1th MISC_ALPHA with '*': <OH! DARLIN*>
  275. replace 0th MISC_ALPHA with '*': <*H! DARLING>
  276. replace 1th MISC_ALPHA with '*': <O*! DARLING>
  277. replace 2th MISC_ALPHA with '*': <OH! *ARLING>
  278. replace 3th MISC_ALPHA with '*': <OH! D*RLING>
  279. replace 4th MISC_ALPHA with '*': <OH! DA*LING>
  280. replaceAll MISC_ALPHA with '*': <**! *******>
  281. Is all MISC_ALNUM? 0
  282. Has    MISC_ALNUM? 1
  283. Num of MISC_ALNUM: 9
  284. spotsof MISC_ALNUM: 0 1 4 5 6 7 8 9 10 
  285. rspotsof MISC_ALNUM: 10 9 8 7 6 5 4 1 0 
  286. replace -1th MISC_ALNUM with '*': <OH! DARLIN*>
  287. replace 0th MISC_ALNUM with '*': <*H! DARLING>
  288. replace 1th MISC_ALNUM with '*': <O*! DARLING>
  289. replace 2th MISC_ALNUM with '*': <OH! *ARLING>
  290. replace 3th MISC_ALNUM with '*': <OH! D*RLING>
  291. replace 4th MISC_ALNUM with '*': <OH! DA*LING>
  292. replaceAll MISC_ALNUM with '*': <**! *******>
  293.